package com.util;

import org.apache.log4j.Logger;

import org.apache.log4j.PropertyConfigurator;

import com.action.common.WEB;

public class ActionLog {
	
	public static final String LOG_CONFIG_FIEL =  ActionLog.class.getResource("").getPath()+"log4j.action.properties";
	
	static{
		PropertyConfigurator.configure(LOG_CONFIG_FIEL);
	}
	
	public static void info(Class clazz,String message){
		com.pojo.system.PSWD  pswd = (com.pojo.system.PSWD)WEB.getSession().get("PSWD");
		String name = "";
		if(pswd != null){
			name = pswd.getName();
		}
		Logger logger = Logger.getLogger(clazz);
		logger.info("【"+name+"】"+message);
	}

	
}
